package com.jar.exercise.算法.与运算;

public class Main {
	public static void main(String[] args) {
		reversal();
	}

	private static void reversal() {
		int a = 89, b = 12;
		a = a ^ b;
		b = a ^ b;
		a = a ^ b;
		System.out.println(a + ":" + b);
	}


	public static void reversal1() {
		int x = 3, y = 9;
		x = x - y;
		y = x + y;
		x = y - x;
		System.out.println("getchange3:x=" + x + ";y=" + y);
	}

	public static void reversal2() {
		int x = 3, y = 9;
		x = x * y;
		y = x / y;
		x = x / y;
		System.out.println("getchange4:x=" + x + ";y=" + y);
	}
}
